﻿@model IEnumerable<SoftMedia.Opcion.Web.OpcionService.EstadosDeCuenta_Result>
@{
	ViewBag.Title = "ECList";
}
@{
	
	var head = Session["head"] as SoftMedia.Opcion.Web.OpcionService.ContratosPorDocumento_Result;

	SoftMedia.Opcion.Web.OpcionService.ClientesPorDocumento_Result cli = new SoftMedia.Opcion.Web.OpcionService.ClientesPorDocumento_Result();
	cli = Session[1] as SoftMedia.Opcion.Web.OpcionService.ClientesPorDocumento_Result;  
	
}
}
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0"
	marginheight="0" background="/imagenes/bg_gray_lines.gif">
	<div align="center">
		<img src="/img/tit_ctacte.gif" width="300" height="30" vspace="16">
		&nbsp;&nbsp;&nbsp;&nbsp;
		<img src="/img/logoopcion_reporte.gif" width="132" height="58"></div>
	<strong>VIGENTE </strong>
	<br>
	<br>
	<table width="600" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000"
		bordercolorlight="#808080" bordercolordark="#FFFFFF" align="center">
		<tr>
			<td width="600" valign="top" background="content/imagenes/bg_gray_lines.gif">
				<table width="600" border="0" cellpadding="0" cellspacing="0" class="txt">
					<tr>
						<td width="600" valign="top" bgcolor="#FFFFFF" class="subtext">
							<table width="620" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="60">
										<font color="#666666">Contrato</font>
									</td>
									<td width="100">@head.contrato
									</td>
									<td width="60">
										<font color="#666666">Situaci&oacute;n</font>
									</td>
									<td width="230">@head.sitasoc
									</td>
									<td width="70">
										<div align="right">
											<font color="#666666">Inscripci&oacute;n</font></div>
									</td>
									<td width="100">
										<div align="right">
											@head.datainsc
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<font color="#666666">Nombre</font>
									</td>
									<td colspan="3">@cli.nombre
									</td>
									<td>
										<div align="right">
											<font color="#666666">Adjudicaci&oacute;n</font></div>
									</td>
									<td>@head.datacont
										<tr>
											<td>
												<font color="#666666">Direcci&oacute;n</font>
											</td>
											<td colspan="3" valign="top">
												@cli.direccion
											</td>
											<td>
												<div align="right">
													<font color="#666666">Duraci&oacute;n</font></div>
											</td>
											<td>
												<div align="right">@head.duracion</div>
											</td>
										</tr>
										<tr>
											<td valign="top">
												&nbsp;
											</td>
											<td colspan="3" valign="top">@cli.dist,@cli.prov,@cli.dpto
											</td>
											<td>
												<div align="right">
													<font color="#666666">B.M.C. US$</font></div>
											</td>
											<td>
												<div align="right">
													@head.credito
												</div>
											</td>
										</tr>
										<tr>
											@*<td valign="top"><? 
			if($_SESSION['admin_user']==true) 
			{
				echo 'Clave';
			}
			?></td>
			<td colspan="3" valign="top"><? 
			if($_SESSION['admin_user']==true) 
			{
				echo $datos_cliente['password'];
			}
			?> &nbsp;</td>
			<td><div align="right"><font color="#666666">Bono</font></div></td>
			<td><div align="right"><? if($contrato['bono']!="0") echo imprime_cantidad($contrato['bono']);?></div></td>*@
										</tr>
										<tr>
											<td colspan="6" height="1">
												&nbsp;
											</td>
										</tr>
							</table>
							@(Html.Telerik().Grid(Model)
									//.DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Asociado"))
.Name("Grid")
.Columns(columns =>
	{
		columns.Bound(o => o.contrato).Width(80);
		//columns.Bound(o => o.).Width(150);
		//columns.Bound("cli.direccion").Width(150);
		//columns.Bound("head.credito").Width(80);
		//columns.Bound(o => o.fechains).Format("{0:MM/dd/yyyy}").Width(120);
	})

							)
							<table width="620" border="0" cellpadding="0" cellspacing="1">
								<!--DWLayoutTable-->
								<tr>
									<td colspan="6" height="1" bgcolor="#006699">
										<img src="imagenes/trans.gif" width="5" height="1">
									</td>
								</tr>
								<tr valign="bottom">
									<td width="90" rowspan="2" valign="bottom" class="form">
										<font color="#666666">Aportado</font>
									</td>
									<td width="100" class="form">
										<div align="center">
											<font color="#666666">C. Capital</font></div>
									</td>
									<td width="100" class="form">
										<div align="center">
											<font color="#666666">Otros</font></div>
									</td>
									<td width="100" class="form">
										<div align="center">
											<font color="#666666">Total</font></div>
									</td>
									<td width="150" class="form">
										<div align="right">
											<font color="#666666">Saldo Pendiente</font></div>
									</td>
									<td width="110" class="form">
										<div align="right">
											<font color="#666666">US$ </font>
											@head.pagoatraz
										</div>
									</td>
								</tr>
								<tr>
									<td width="100" class="form">
										<div align="center">
											@head.acapital
										</div>
									</td>
									<td width="100" class="form">
										<div align="center">
											@head.aotros
										</div>
									</td>
									<td width="100" class="form">
										<div align="center">
											@head.atotal
										</div>
									</td>
									<td width="150" class="form">
										<div align="right">
											<font color="#666666">Pr&oacute;ximo Pago</font></div>
									</td>
									<td class="form">
										<div align="right">
											<font color="#666666">US$</font>
											@head.pagomensual
										</div>
									</td>
								</tr>
								<tr>
									<td colspan="6" height="1" bgcolor="#006699">
										<img src="imagenes/trans.gif" width="5" height="1">
									</td>
								</tr>
								<tr valign="top">
									<td width="90" rowspan="2" class="form">
										<font color="#666666">Por Aportar</font>
									</td>
									<td width="100" rowspan="2" class="form">
										<div align="center">
											@head.pcapital
										</div>
									</td>
									<td width="100" rowspan="2" class="form">
										<div align="center">
											@head.potros
										</div>
									</td>
									<td width="100" rowspan="2" class="form">
										<div align="center">
											@head.ptotal
										</div>
									</td>
									<td width="150" rowspan="2">
										<div align="left">
										</div>
										<div align="left">
											<table width="150" border="0" cellpadding="0" cellspacing="0">
												<!--DWLayoutTable-->
												<tr align="center">
													<td width="30" class="form" height="30">
														<div align="center">
															<font color="#666666">N&ordm;</font></div>
													</td>
													<td class="form" height="30">
														<div align="center">
															<font color="#666666">Fecha Asamblea</font></div>
													</td>
												</tr>
												<tr class="form">
													<td height="20" valign="center" class="form">
														<div align="center">
															@head.cuotamens</div>
													</td>
													<td class="form">
														<div align="center">@head.asamblea</div>
													</td>
												</tr>
											</table>
										</div>
									</td>
									<td height="30" valign="center" class="form">
										<div align="center">
											<font color="#666666">Pago Total</font></div>
									</td>
								</tr>
								<tr valign="top">
									<td height="19" valign="top" class="form">
										<div align="center">
											<font color="#666666">US$</font>@head.pagototal</div>
									</td>
								</tr>
								<tr>
									<td colspan="6" height="1" bgcolor="#006699">
										<img src="imagenes/trans.gif" width="5" height="1">
									</td>
								</tr>
							</table>
